package com.sunyard.auth.controller;

import com.sunyard.auth.common.model.ResultModel;
import com.sunyard.auth.model.AuthModel;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @program auth
 * @description 用户管理
 * @author raoinyx@163.com
 * @create 2020-07-18 00:23
 */
@RestController
@RequestMapping("/user")
@Component
public class UserController extends BaseController {

    /**
     * 获取用户信息
     */
    @GetMapping("/message")
    public ResultModel getMessage(HttpServletRequest request) {
        AuthModel authModel = getAuthModel(request);
        return new ResultModel(authModel);
    }

}
